<template>
  <el-select-v2
    v-model="value"
    :options="options.options"
    :placeholder="options.placeholder"
    :size="props.size"
    style="width: 100%"
    :style="options.style"
  />
</template>

<script setup lang="ts">

  export type OptionItem = {
    label: string,
    value: any
  }
  export type SelectOptions = {
    options: {
      placeholder: String,
      options: Array<OptionItem>,
    },
    size: string,
  }
  const props = defineProps<SelectOptions>()
  const options = props.options
</script>

<style scoped>

</style>
